using System.Collections;
//1023
namespace CSharppro._1023;

public class Demo
{
    public void TestPrint()
    {
        int[,] arr4=new int[3,3];
        arr4[0, 0] = 1;
        arr4[1, 1] = 2;
        arr4[2, 2] = 3;
        int[,] arr5 =
        {
            { 1, 2, 3 },
            { 4, 5, 6 },
            { 7, 8, 9 }
        };
        int[] arr6 = { 233, 21312, 322 };
        Array.Sort(arr6);
        foreach (var VARIABLE in arr6)
        {
            Console.WriteLine(VARIABLE+"\t");
        }
    }

    public void BubbleSort(int[] arr)
    {
        int n = arr.Length;
        for (int i = 0; i < n-1; i++)
        {
            for (int j = 0; j < n-1; j++)
            {
                if (arr[j] > arr[j + 1])
                {
                    int temp = arr[j];
                    arr[j] = arr[j + 1];
                    arr[j + 1] = temp;
                }
            }
        }
    }
}